home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / Developer Documentation / International / TSM Support next >
Encoding:
Text File  |  1995-07-11  |  1.6 KB  |  34 lines  |  [TEXT/ttxt]

  1. TSM Support
  2. by The OpenDoc Design Team
  3. April 20, 1995
  4.  
  5.  
  6. © 1993-1995  Apple Computer, Inc. All Rights Reserved.
  7. Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
  8. Mac and OpenDoc are trademarks of Apple Computer, Inc.  (Palatino/10/Plain)
  9.  
  10.  
  11. Introduction
  12.  
  13. OpenDoc supports the Text Services Manager (TSM), and, in particular inline text input. Parts follow almost the same protocol that applications do to support TSM, but they have to do some additional work.
  14.  
  15. There were a number of problems with TSM support in DR2. They have been fixed. The TextEditor sample part supports inline input using TSM. Please check it out.
  16.  
  17. General support
  18.  
  19. OpenDoc calls InitTSMAwareAp, CloseTSMAwareApp, TSMEvent, and SetTSMCursor at the appropriate times. Parts do not need to call any of these.
  20.  
  21.  
  22. TSMTE support
  23.  
  24. Parts wishing to use TSMTE extension must check for its existence themselves. OpenDoc does nothing special to support the TSMTE extension.
  25.  
  26.  
  27. Inline input support
  28.  
  29. To support inline input, applications need to install Apple event handlers. Parts should not install the Apple event handlers. Instead, they should do the analogous thing of instantiating a subclass of the ODSemanticInterface extension and implementing ODPart::GetExtension and ODPart::HasExtension. See the Semantic Events documentation for more details.
  30.  
  31. OpenDoc calls UseInputWindow(true) whenever a part loses the keystroke focus. Therefore, a part wants to use inline input, it must call UseInputWindow(false) when it gets the keystroke focus.
  32.  
  33. Parts should make the normal calls to FixTSMDocument, ActivateTSMDocument and DeactivateTSMDocument as appropriate.
  34.